package com.jyhs.maven.service;



import com.jyhs.maven.dao.TransferDao;
import com.jyhs.maven.entity.Transfer;
import com.jyhs.maven.entity.dto.TransferRecord;
import com.jyhs.maven.entity.dto.TransferRecordQuery;
import org.springframework.transaction.annotation.Transactional;

import java.sql.SQLException;
import java.text.ParseException;
import java.util.List;

public interface TransferService {

    @Transactional
    void setTransferDao(TransferDao transferDao);
    int saveTransfer(Transfer transfer) throws SQLException, ClassNotFoundException;

    List<TransferRecord> getTransferList(TransferRecordQuery transferRecordQuery) throws SQLException, ClassNotFoundException, ParseException, IllegalAccessException;

    int getTransferCount(TransferRecordQuery query) throws SQLException, ClassNotFoundException;

}
